<?xml version="1.0" encoding="UTF-8" ?>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>${view.title}</title>
<link rel="stylesheet" href="<c:url value="/"/>css/manage.css" type="text/css" />
</head>
<body>
<div id="top_menu">
<ul>
<li><a href="<c:url value="/"/>admin/category.html?language=zh_CN">${view.navigationView.chinese}</a></li>
<li><a href="<c:url value="/"/>admin/category.html?language=en">${view.navigationView.english}</a></li>
</ul>
</div>
<!-- navigation -->
<div id="navigation">
<strong>${view.navigationView.position}</strong>
<ol class="navigation">
<li><a href="<c:url value="/"/>admin/manage.html">${view.navigationView.navigationManage}</a></li>
<li><a class="current" href="<c:url value="/"/>admin/category.html">${view.navigationView.navigationCategory}</a></li>
</ol>
</div>
<!-- query category -->
<div id="content">
<table>
	<tr>
		<td class="tdp20">${view.categoryContentView.typeName}</td>
		<td class="tdp20">${view.categoryContentView.name}</td>
		<td class="tdp10">${view.globalView.operation}</td>
	</tr>
	<c:forEach items="${view.categoryList}" var="category">
	<tr>
		<td>${category.typeId}</td>
		<td>${category.name}</td>
		<td><a href="<c:url value="/"/>admin/delete_category_action.html?id=${category.id}">${view.globalView.delete}</a></td>
	</tr>
	</c:forEach>
</table>
</div>
<!-- insert category -->
<div id="content">
<form action="<c:url value="/"/>admin/insert_category_action.html" method="post">
<table>
<tr>
<td>${view.categoryContentView.name}</td>
<td>
<input type="text" name="name"/>
</td>
</tr>
<tr>
<td>${view.categoryContentView.typeName}</td>
<td>
<select name="typeId">
<c:forEach items="${view.tourTypeList}" var="tourType">
<option value="${tourType.id}">${tourType.name}</option>
</c:forEach>
</select>
</td>
</tr>
</table>
<input type="submit" value="${view.globalView.insert}"/>
</form>
</div>
</body>
</html>